package com.klb.service.catalog.impl;

import java.util.List;

import com.klb.dao.impl.ArticleDaoImpl;
import com.klb.model.BbsArticle;
import com.klb.service.catalog.IndexServiceCatalog;

/**
 * Created by fujia on 2016/6/6.
 */
public class IndexServiceCatalogImpl implements IndexServiceCatalog {
    private ArticleDaoImpl articleDao;

    public void setArticleDao(ArticleDaoImpl articleDao) {
        this.articleDao = articleDao;
    }


    @Override
    public List<BbsArticle> getHotArticles() {
        return this.articleDao.getHotArticles();
    }

    @Override
    public List<BbsArticle> getNewArticles() {
        return this.articleDao.getNewArticles();
    }


}
